package StringHomeWork;
//判断当前字符串是否由给定的字符开始/结束
public class StartsWithDemo {
    public static void main(String[] args) {
        String str="thinking in Java";
        Boolean starts=str.startsWith("think");
        System.out.println(starts);
        Boolean ends=str.endsWith("va");
        System.out.println(ends);
    }
}
